﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Admin_Admin.aspx.cs" Inherits="QiCms.Web.Admin.Admin_Admin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="QBSCmsContentPlaceHolder" runat="server">
<div class="tpl-content-wrapper">
        <ol class="am-breadcrumb">
            <li><a href="Index.aspx" class="am-icon-home">首页</a></li>
            <li class="am-active">用户管理</li>
        </ol>
        <div class="tpl-portlet-components">
            <div class="portlet-title">
                <div class="caption font-green bold"><span class="am-icon-bars"></span> 用户列表</div>
                <div class="tpl-portlet-input tpl-fz-ml">
                    <div class="portlet-input input-small input-inline">
                        <div class="input-icon right">
                            <form name="frmSearch" method="post" action="Admin_Admin.aspx">
                            <div class="am-input-group am-input-group-sm">
                            <input type="text" name="who" id="who" class="am-form-field" placeholder="会员名">
                            <span class="am-input-group-btn">
                                <button class="am-btn  am-btn-default am-btn-success tpl-am-btn-success am-icon-search" type="submit"></button>
                            </span>
                            </div>
                            </form>
                        </div>
                    </div>
                </div>


            </div>
            
<form id="TableForm" runat="server">
            <div class="tpl-block">
                <div class="am-g">
                    <div class="am-u-sm-12 am-u-md-6">
                        <div class="am-btn-group am-btn-group-xs">
                            <button type="button" class="am-btn am-btn-default am-btn-success" onclick="window.location.href='Admin_AdminMg.Aspx?Act=Add';"><span class="am-icon-plus"></span> 新增会员</button>
                            <%= MemberGroup %>
                        </div>
                    </div>
                </div>
                <div class="am-g">
                    <div class="am-u-sm-12">
                        <asp:DataGrid ID="MemberGrid" runat="server" OnItemCommand="MemberGrid_ItemCommand" OnItemDataBound="MemberGrid_ItemDataBound" Width="100%" GridLines="None" CssClass="am-table am-table-striped am-table-hover table-main">
					            <Columns>
                                    <asp:TemplateColumn ItemStyle-Width="30">
			                        <HeaderTemplate>
				                        <input onclick="checkFormAll(this.checked)" type="checkbox" />
			                        </HeaderTemplate>
			                        <ItemTemplate>
				                        <asp:CheckBox ID="MemberChk" runat="server" />
			                        </ItemTemplate>
		                            </asp:TemplateColumn>
						            <asp:TemplateColumn HeaderText="会员名（点击修改）">
							            <ItemTemplate>
								            <a href='Admin_AdminMg.aspx?Act=Edit&id=<%# Eval("Memberid") + UrlParameter %>'><%# Eval("MemberName") %></a>
							            </ItemTemplate>
						            </asp:TemplateColumn>
						            <asp:TemplateColumn HeaderText="性别" ItemStyle-Width="50">
							            <ItemTemplate>
								            <%# (bool)Eval("Sex") ? "<img alt='男' src='/template/admin/images/member_male.gif' />" : "<img alt='女' src='/template/admin/images/member_female.gif' />"%>
							            </ItemTemplate>
						            </asp:TemplateColumn>
						            <asp:HyperLinkColumn DataNavigateUrlField="Groupid" DataNavigateUrlFormatString="?gid={0}" DataTextField="GroupName" HeaderText="会员组" ItemStyle-Width="100"></asp:HyperLinkColumn>
						            <asp:BoundColumn DataField="AddDate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="注册日期" ItemStyle-Width="60"></asp:BoundColumn>
						            <asp:BoundColumn DataField="AddNum" HeaderText="添加文章" ItemStyle-Width="100"></asp:BoundColumn>
						            <asp:TemplateColumn HeaderText="VIP" ItemStyle-Width="50">
							            <ItemTemplate>
								            <%# (bool)Eval("Vip") ? "<img alt='VIP会员' src='/template/admin/images/vip.gif' />" : "NoVip"%>
							            </ItemTemplate>
						            </asp:TemplateColumn>
						            <asp:TemplateColumn HeaderText="冻结" ItemStyle-Width="100">
							            <ItemTemplate>
								            <%# (bool)Eval("MemberLock") ? "<img alt='该账号已冻结' src='/template/admin/images/lock.gif' />" : "未冻结"%>
							            </ItemTemplate>
						            </asp:TemplateColumn>
						            <asp:TemplateColumn HeaderText="操作">
							            <ItemTemplate>
                                            <div class="am-btn-toolbar">
                                                <div class="am-btn-group am-btn-group-xs">
                                            <asp:LinkButton runat="server" CommandName="VIP" CssClass="am-btn am-btn-default am-btn-xs am-text-secondary"><span class="am-icon-user-md"></span>VIP</asp:LinkButton>
                                            <asp:LinkButton runat="server" CommandName="Lock" CssClass="am-btn am-btn-default am-btn-xs am-hide-sm-only"><span class="am-icon-link"></span>冻结</asp:LinkButton>
								            <asp:LinkButton ID="DeleteBtn" runat="server" CommandName="Delete" CssClass="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"><span class="am-icon-trash-o"></span>删除</asp:LinkButton>
                                                </div>
                                            </div>
							            </ItemTemplate>
						            </asp:TemplateColumn>
					            </Columns>
				            </asp:DataGrid>
                            <div class="am-cf">

                                <div class="am-fr">
                                    <ul class="am-pagination tpl-pagination">
                                        <%= NextPrev %><%= Pagination %>
                                    </ul>
                                </div>
                            </div>
                            <hr>
                    </div>
                </div>
            </div>
                
</form>  
        </div>
    </div>

</asp:Content>
